/**
*Createed by yellowTT's game
*FileName:     DrawGizmosUtil.cs
*Author:       yellowTT
*UnityVersion：5.6.0f3
*Date:         2019年04月22日,Monday, 11时12分48秒
*/

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;

public class DrawGizmosUtil : MonoBehaviour {
    public float radius = 10f;
    public Color color = Color.yellow;
	// Use this for initialization
	void Start () {
		
	}

    //[DrawGizmo(GizmoType.Selected | GizmoType.Active)]
    //static void DrawSphere() {
    //    Gizmos.color = color;
    //    Gizmos.DrawSphere(Vector3.zero,10);
    //}
    

    private void OnDrawGizmosSelected()
    {
        Gizmos.color = color;
        Gizmos.DrawSphere(transform.position, radius);
    }

    //private void OnDrawGizmos()
    //{
    //    Gizmos.color = color;
    //    Gizmos.DrawSphere(transform.position, radius);
    //}
}
